<template>
  <div class="home">
    <el-container>
      <el-header>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo">
            <el-menu-item index="1">
              <i class="el-icon-menu"></i>
              <span slot="title">工作台</span>
            </el-menu-item>
            <el-menu-item index="2" @click="$router.push('/document/list')">
              <i class="el-icon-menu"></i>
              <span slot="title">文档</span>
            </el-menu-item>
            <el-menu-item index="3"  @click="$router.push('/knowledge/list')">
              <i class="el-icon-document"></i>
              <span slot="title">知识库</span>
            </el-menu-item>
            <el-menu-item index="4">
              <i class="el-icon-setting"></i>
              <span slot="title">关注</span>
            </el-menu-item>
            <el-menu-item index="5">
              <i class="el-icon-setting"></i>
              <span slot="title">收藏</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
            <!-- 具名插槽 -->
          <slot name="main"></slot>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
}
</script>
